package com.woniuxy.tfss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.tfss.entity.Address;
import com.woniuxy.tfss.entity.Admin;
import com.woniuxy.tfss.entity.Rider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface RiderMapper extends BaseMapper<Rider> {

    @Select("select * from tfss_rider where phonenum=#{phoneNum}")
    public Rider getByPhoneNum(String phoneNum);

    @Select("select * from tfss_rider where workstatus='1'")
    public List<Rider> getWaitRiders();

}
